import request from '@/utils/request';

// 获取项目详情
function getprodetail(id, roletype) {
  return request({
    url: '/project/one',
    method: 'GET',
    params: {
      id, roletype
    }
    // emulateJSON: true

  });
}

// 修改项目状态为已完成
function finishProject(id) {
  return request({
    url: '/project/status',
    method: 'POST',
    params: {
      id
    }
    // emulateJSON: true

  });
}
export { getprodetail, finishProject };
